package com.imy.luascript.app.ui.main.fragment.project;

import android.app.Activity;
import android.view.View;

import com.imy.common.base.adapter.BaseDelegate;
import com.imy.common.base.adapter.BaseRecyclerViewHolder;
import com.imy.luascript.R;
import com.imy.luascript.app.data.general.ProjectItem;

public class BackDelegate extends BaseDelegate<ProjectItem, BackDelegate.Holder> {


    public BackDelegate(Activity activity) {
        super(activity);
    }

    @Override
    protected boolean isShow(ProjectItem projectItem) {
        return projectItem.type==ProjectItem.TYPE_BACK;
    }

    @Override
    protected int getLayoutID() {
        return R.layout.recyle_item_back_delegate;
    }

    @Override
    protected Holder getHolder(View view) {
        return new Holder(view);
    }

    @Override
    protected void bindView(Holder holder, int position, ProjectItem projectItem) {

    }

    public static class  Holder extends BaseRecyclerViewHolder{

        public Holder(View itemView) {
            super(itemView);
        }
    }
}
